package com.vortex.cloud.sample.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.github.liaochong.myexcel.core.annotation.ExcelModel;
import com.github.liaochong.myexcel.core.annotation.IgnoreColumn;
import com.github.liaochong.myexcel.core.annotation.Prompt;
import com.github.liaochong.myexcel.core.constant.FileType;
import com.github.liaochong.myexcel.core.constant.LinkType;
import lombok.Data;

import javax.persistence.Column;
import java.io.*;
import java.util.List;

import com.github.liaochong.myexcel.core.annotation.ExcelModel;
import com.github.liaochong.myexcel.core.annotation.IgnoreColumn;
import com.github.liaochong.myexcel.core.annotation.Prompt;
import com.github.liaochong.myexcel.core.constant.FileType;
import com.github.liaochong.myexcel.core.constant.LinkType;
import com.vortex.cloud.vfs.lite.data.domain.AbstractBaseDeleteModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import net.bytebuddy.NamingStrategy;
import org.hibernate.annotations.Table;
import org.hibernate.engine.jdbc.BinaryStream;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

/**
 * @author 王林
 * @version 1.0
 * @date 2021-10-20 周三
 * @time 16:03
 * @description
 */
@Data
@Entity(name = ArtCrowd.TABLE_NAME)
@Table(appliesTo = ArtCrowd.TABLE_NAME, comment = "art_crowd表")
@TableName(value = ArtCrowd.TABLE_NAME)
public class ArtCrowd implements Serializable {
    public static final String TABLE_NAME = "art_crowd";

    @Id
    @Column(columnDefinition = "int(10) comment 'ID'")
    @TableId(type = IdType.AUTO)
    private Integer id;

    @Column(columnDefinition = "varchar(20) comment '姓名'")
    private String name;

    @Column(columnDefinition = "varchar(20) comment '年龄'")
    private Integer age;

    @Column(columnDefinition = "varchar(20) comment '性别'")
    private String gender;

    @Column(columnDefinition = "varchar(20) comment '绘画等级'")
    private String paintingLevel;

    @Column(columnDefinition = "varchar(10) comment '是否会跳舞'")
    private boolean dance;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Column(columnDefinition = "datetime comment '考核时间'")
    private LocalDateTime assessmentTime;

    @Column(columnDefinition = "varchar(100) comment '爱好'")
    private String hobby;

    @Column(columnDefinition = "varchar(100) comment '链接地址'")
    private String url;

    @Column(columnDefinition = "longblob comment '相片'")
    private byte[] image;

    @Column(columnDefinition = "varchar(100) comment '下拉选项'")
    private String options;

    @Column(columnDefinition = "longblob comment '图片'")
    private byte[] photo;
}
